<template>
	<view class="index-box">
		<template v-if="pageModuleName('user')">
			<sww-page-user ref="modulePageRef"></sww-page-user>
		</template>
		<template v-else-if="pageModuleName('themePage')">
			<sww-page-compage :tabIndex="tabIndex" ref="modulePageRef"></sww-page-compage>
		</template>
		<sww-tab-bar :isVideo="pageModuleName('video')" ref="tabBarRef"></sww-tab-bar>
	</view>
</template>
<script>
	import {
		tabPage
	} from '../../mixins/tabPage';

	export default {
		mixins: [tabPage],
		data() {
			return {
				tabIndex: 4
			};
		}
	};
</script>
